using Microsoft.AspNetCore.Mvc;
using Consul;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Configuration;

namespace Ant.Service.PersonnelManagement.Conntroller
{
    [Route("api/{controller}")]
    public class HealthController:Controller
    {
        
        private IConfiguration _IConfiguration = null;
        private ILogger<HealthController> _logger = null;
        public HealthController(IConfiguration configuration, ILogger<HealthController> logger)
        {
            
            this._IConfiguration = configuration;
            this._logger = logger;
        }
        public IActionResult Check(){
            // System.Console.WriteLine("被检查");
            // var port = this._IConfiguration["port"];
            // this._logger.LogWarning($"{port}-Health Check!");
            return Ok("test");
        }
    }
}